package com.hnucm.ktstudy.base

/**
 * 数据类
 * Data class must have at least one primary constructor parameter
 * 数据类必须至少有一个主构造函数参数
 *
 */


data class Money(val id:Int, val name:String){}

fun main(){
    var money= Money(1,"lx")
    var money2=Money(2,"lxx")
    var money3=Money(1,"lx")
    println(money==money2)
    println(money===money2)
    println(money==money3)
    println(money===money3)
}